package com.gy.ai.agent.platform.dashscope.entity;

import com.gy.ai.agent.core.ReqOptions;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author LGY
 * Create by 2025/6/19 17:02
 */
@Data
@Accessors(chain = true)
public class DashscopePlatformRerankReq extends ReqOptions implements Serializable {

    private String model;

    private Input input;

    private Parameters parameters;

    @Data
    @Accessors(chain = true)
    public static class Parameters implements Serializable {
        private Integer top_n;

        private Boolean return_documents;
    }

    @Data
    @Accessors(chain = true)
    public static class Input implements Serializable {
        private String query;

        private List<String> documents;
    }
}
